package com.imti.retrofitweatherdemo.logic;

import java.util.List;

public class NewsData
{
    //data class NewsData(
    //        var reason: String = "",
    //        var error_code: String = "",
    //        var result: NewsContent = NewsContent()
    //)
    //
    //data class NewsContent(
    //        var stat: String = "",
    //        var page: String = "",
    //        var pageSize: String = "",
    //        var data: List<NewsListItem> = ArrayList()
    //)
    //
    //data class NewsListItem(
    //        var uniquekey: String = "",
    //        var title: String = "",
    //        var date: String = "",
    //        var category: String = "",
    //        var author_name: String = "",
    //        var url: String = "",
    //        var thumbnail_pic_s: String = "",
    //        var is_content: String = ""
    //)

    private String reason;

    private String error_code;

    private NewsContent result;

    public String getReason()
    {
        return reason;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }
    public String getError_code()
    {
        return error_code;
    }
    public void setError_code(String error_code)
    {
        this.error_code = error_code;
    }
    public NewsContent getResult()
    {
        return result;
    }
    public void setResult(NewsContent result)
    {
        this.result = result;
    }


    class NewsContent
    {

        private String stat;

        private String page;

        private String pageSize;

        private List<NewsListItem> data;

        public String getStat()
        {
            return stat;
        }
        public void setStat(String stat)
        {
            this.stat = stat;
        }
        public String getPage()
        {
            return page;
        }
        public void setPage(String page)
        {
            this.page = page;
        }
        public String getPageSize()
        {
            return pageSize;
        }
        public void setPageSize(String pageSize)
        {
            this.pageSize = pageSize;
        }

        public List<NewsListItem> getData()
        {
            return data;
        }
        public void setData(List<NewsListItem> data)
        {
            this.data = data;
        }
    }

    class NewsListItem
    {

        private String uniquekey;

        private String title;

        private String date;

        private String category;

        private String author_name;

        private String url;

        private String thumbnail_pic_s;

        private String is_content;

        public String getUniquekey()
        {
            return uniquekey;
        }
        public void setUniquekey(String uniquekey)
        {
            this.uniquekey = uniquekey;
        }
        public String getTitle()
        {
            return title;
        }
        public void setTitle(String title)
        {
            this.title = title;
        }
        public String getDate()
        {
            return date;
        }
        public void setDate(String date)
        {
            this.date = date;
        }
        public String getCategory()
        {
            return category;
        }
        public void setCategory(String category)
        {
            this.category = category;
        }
        public String getAuthor_name()
        {
            return author_name;
        }
        public void setAuthor_name(String author_name)
        {
            this.author_name = author_name;
        }
        public String getUrl()
        {
            return url;
        }
        public void setUrl(String url)
        {
            this.url = url;
        }
        public String getThumbnail_pic_s()
        {
            return thumbnail_pic_s;
        }
        public void setThumbnail_pic_s(String thumbnail_pic_s)
        {
            this.thumbnail_pic_s = thumbnail_pic_s;
        }
        public String getIs_content()
        {
            return is_content;
        }
        public void setIs_content(String is_content)
        {
            this.is_content = is_content;
        }
    }
}
